Basic tutorial for the C/C++ programming language.


The presentation from Dr. Crawford and his example programs can be found at:
http://www.pa.uky.edu/~crawford/cpp/

A general C++ tutorial can be found at:
http://cplusplus.com/doc/tutorial/

Instructions for compiling c++ source code on Windows from the command line:




A specific example:

1) Download hist_r.cc hist_t.cc hist_t.h hist_x.cc from http://www.pa.uky.edu/~crawford/cpp/ and save the files to a folder on your computer. For this example the files have been downloaded into a folder on the desktop.
2) Locate and run "Visual Studio 2008 Command Prompt" as administrator. The first line on the command prompt is:
3) Because the files have been placed on the desktop, you need to tell the command prompt where to find the files by changing the directory. This can be done by:
4) This command has changed the directory, so the next line in the command prompt will be
5) To compile the program by input commands on this line:
6) You should now see "Generating code", and once it has completed, the next line should be
7) And now to test the program: